#include<stdio.h>

int AddToTop(int top)
{
    int res = 0;
    int i = 0;
    for(;i <= top; i++)
    {
        res+=i;
    }

    return res;
}


int main()
{
    printf("debug start\n");

    int top = 100;
    int sum = AddToTop(top);
    printf("sum:%d\n",sum);
    
    printf("debug end\n");
    return 0;
}
